<?php
include_once("includes/page_utf_class.php");
include_once("$config[webroot]/module/product/includes/plugin_order_class.php");
//========================================
$sql = "select * from ".PROSTOCK." where user_id = ".$buid;
$db->query($sql);
$list = $db->getRows();
foreach($list as $key => $val){
	$p_sql = "select * from ".SETMEAL." where id = ".$val['product_id'];
	$db->query($p_sql);
	$p_info = $db->fetchRow();
	$list[$key]['image'] =$p_info['pic'];

}

$tpl->assign("list",$list);
//========================================
$tpl->assign("config",$config);
$tpl->assign("lang",$lang);
$output=tplfetch("admin_stock.htm");
?>